<?PHP
 session_start();
 include("admin/include/db.php");
 include("includes/session.php");
 
 $userId = $_SESSION['user_id'];

 $sqlUser = mysql_query("SELECT * FROM software_user 
									WHERE id = '".intval( $userId)."'");
 $resUser  = mysql_fetch_array($sqlUser);
 
 if(isset($_REQUEST) && $_REQUEST['action'] != ''){
 	
	
	
	mysql_query("INSERT INTO software_course_payment
						SET 
							user_id			=	'".$_SESSION['user_id']."',
							payment			=	'".$_REQUEST['user_feedetails']."',
							email			=	'".$resUser["email"]."',
							first_name		=	'".$resUser["first_name"]."',
							status			=	'N',
							time_id			= unix_timestamp()
	");
	
	header("location:payment_module.php?fees=".$_REQUEST['user_feedetails']);
	exit();		
 }
   

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=TITLE_WEBSITE?></title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<script>
function validation(){
	if(document.getElementById("user_feedetails").value == ''){
		alert("Please enter fee details");
		return false;	
	}
}
</script>
<center>
<form id="form1" name="form1" method="post" action=""  onsubmit="return validation();" >
<div style="background:#179cc1; height:3px">&nbsp;</div>
<div style="width:990px;" align="center">
		<div id="header">
		<?php
    		include("includes/header.php");
   		?>
        </div>
    <div style="margin-top:20px;">
    	<div style="width:100%;float:left">
        	<div style="margin-top:20px;">
    	
       <div style="width:100%;" >
        	<div align="left"  style="background:#000;color:#FFF; font-family:Arial, Helvetica, sans-serif; height:30px; padding-top:10px" >
            	<span  > &nbsp;Thank you! for you co-operation we will contact you soon.</span>
            </div>
            <div class="text1"  align="left" style=" padding-top:18px;"></div>
        </div>
       
      <div style="clear:both"></div>
    </div>
        	
        </div>
        <div style="clear:both"></div>
    </div>
   </div> 
    <div style="margin-top:23px; margin-bottom:21px" align="center" >
    	<?php
									$sqlAdvertise = mysql_query("SELECT * FROM software_advertise 
																	WHERE 
																		banner_status = 'Y' AND banner = 2
																		ORDER BY RAND()
																		");
									$resAdvertise = mysql_fetch_array($sqlAdvertise);
							
									$imgPath  = 'admin/upload_images/'.$resAdvertise["banner_image"];
									
								?>
								
    </div>
   </div>
   <div id="footer">
  		<?php include("includes/footer.php")?>
   </div>
</div>
	</div>
</center>
</body>
</html>
